<?php

require 'vendor/autoload.php';

use src\ImageHosting;

/*
 * 渠道
 * Alibaba阿里巴巴、Baidu百度、Netease网页、Suning苏宁、Toutiao头条
 */

$path = "img/1.jpg";
$uploadName = 'Baidu';

$instance = new ImageHosting();
$res = $instance->upload($path,$uploadName);

var_dump($res);